﻿﻿using System;
using System.Collections.Generic;
using System.Text;
namespace WebApplication1.DDD.Models.Entity.ConnectionString_SQLSERVER
{
    public class W_Sort:NFinal.Struct
    {
		public System.Int32? ID {get;set;}
		public System.Int32? pID {get;set;}
		public System.String IDs {get;set;}
		public System.String sortName {get;set;}
		public System.String type {get;set;}
		public System.String linkUrl {get;set;}
		public System.Int32? orderNum {get;set;}
		public System.Int32? Level {get;set;}
		public System.String listPage {get;set;}
		public System.String contentPage {get;set;}
		public System.String htmlListPath {get;set;}
		public System.String htmlcontentPath {get;set;}
		public System.String pageTitle {get;set;}
		public System.String pageKeyWords {get;set;}
		public System.String indexImage {get;set;}
		public System.String ico {get;set;}
		public System.String content {get;set;}
		public System.Int32? flag {get;set;}
		public System.String linkPage {get;set;}
		public System.Int32? UserID {get;set;}
		public System.DateTime? AddTime {get;set;}
		public System.String secondSortName {get;set;}
		public System.Int32? visits {get;set;}
		#region 写Json字符串
		public override void WriteJson(System.IO.TextWriter tw)
		{
			tw.Write("{");
					tw.Write("\"ID\":");
					tw.Write(ID==null?"null" : ID.ToString());
					tw.Write(",");
					tw.Write("\"pID\":");
					tw.Write(pID==null?"null" : pID.ToString());
					tw.Write(",");
					tw.Write("\"IDs\":");
					tw.Write("\"");
					tw.Write(IDs==null?"null":IDs);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"sortName\":");
					tw.Write("\"");
					tw.Write(sortName==null?"null":sortName);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"type\":");
					tw.Write("\"");
					tw.Write(type==null?"null":type);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"linkUrl\":");
					tw.Write("\"");
					tw.Write(linkUrl==null?"null":linkUrl);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"orderNum\":");
					tw.Write(orderNum==null?"null" : orderNum.ToString());
					tw.Write(",");
					tw.Write("\"Level\":");
					tw.Write(Level==null?"null" : Level.ToString());
					tw.Write(",");
					tw.Write("\"listPage\":");
					tw.Write("\"");
					tw.Write(listPage==null?"null":listPage);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"contentPage\":");
					tw.Write("\"");
					tw.Write(contentPage==null?"null":contentPage);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"htmlListPath\":");
					tw.Write("\"");
					tw.Write(htmlListPath==null?"null":htmlListPath);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"htmlcontentPath\":");
					tw.Write("\"");
					tw.Write(htmlcontentPath==null?"null":htmlcontentPath);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"pageTitle\":");
					tw.Write("\"");
					tw.Write(pageTitle==null?"null":pageTitle);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"pageKeyWords\":");
					tw.Write("\"");
					tw.Write(pageKeyWords==null?"null":pageKeyWords);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"indexImage\":");
					tw.Write("\"");
					tw.Write(indexImage==null?"null":indexImage);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"ico\":");
					tw.Write("\"");
					tw.Write(ico==null?"null":ico);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"content\":");
					tw.Write("\"");
					tw.Write(content==null?"null":content);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"flag\":");
					tw.Write(flag==null?"null" : flag.ToString());
					tw.Write(",");
					tw.Write("\"linkPage\":");
					tw.Write("\"");
					tw.Write(linkPage==null?"null":linkPage);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"UserID\":");
					tw.Write(UserID==null?"null" : UserID.ToString());
					tw.Write(",");
					tw.Write("\"AddTime\":");
					tw.Write("\"");
					tw.Write(AddTime==null?"null":AddTime.ToString());
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"secondSortName\":");
					tw.Write("\"");
					tw.Write(secondSortName==null?"null":secondSortName);
					tw.Write("\"");
					tw.Write(",");
					tw.Write("\"visits\":");
					tw.Write(visits==null?"null" : visits.ToString());
			tw.Write("}");
		}
		#endregion
    }
}
